home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / C / DispMod.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-19  |  5.8 KB  |  198 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: Locrian:WWDCSun:C:DispMod.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: somc/smemit.c
  7.  *     SOM Emitter emith.dll: somc/smmain.c
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODDispatchModule_h
  18. #define SOM_ODDispatchModule_h
  19.  
  20.  
  21. #include <som.h>
  22.  
  23. /*
  24.  * -- This emitter treats Method Tokens as Thunks by default
  25.  * -- Use the sc modifier "nothunks" to change this default
  26.  */
  27. #undef somresolve_
  28. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  29.  
  30. /*
  31.  * Define the class name as an object type
  32.  */
  33. #ifndef ODDispatchModule
  34. #define ODDispatchModule SOMObject
  35. #endif
  36. #include <ODObject.h>
  37.  
  38. /*
  39.  * Start of user-defined types:
  40.  */
  41. #ifndef ODExtension
  42.     #define ODExtension SOMObject
  43. #endif /* ODExtension */
  44. #ifndef ODSession
  45.     #define ODSession SOMObject
  46. #endif /* ODSession */
  47.  
  48. /*
  49.  * End of user-defined types.
  50.  */
  51.  
  52. #define ODDispatchModule_MajorVersion 0
  53. #define ODDispatchModule_MinorVersion 0
  54.  
  55. /*
  56.  * External name shortening if required
  57.  */
  58. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  59. #define ODDispatchModuleNewClass c
  60. #define ODDispatchModuleClassData d
  61. #define ODDispatchModuleCClassData x
  62. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  63. /*--------------Migration------------*/
  64. #define ODDispatchModule_classObj ODDispatchModuleClassData.classObject
  65. #define _ODDispatchModule ODDispatchModule_classObj
  66.  
  67. /*
  68.  * Declare the class creation procedure
  69.  */
  70.  
  71. #if applec ^ PRAGMA_LIB_EXPORT
  72. #pragma lib_export on
  73. #endif
  74.  
  75. SOMEXTERN SOMClass * SOMLINK ODDispatchModuleNewClass(integer4 somtmajorVersion,
  76.         integer4 somtminorVersion);
  77.  
  78. /*
  79.  * Declare the class data structure
  80.  */
  81. SOMEXTERN struct ODDispatchModuleClassDataStructure {
  82.     SOMAny *classObject;
  83.     somMToken InitDispatchModule;
  84.     somMToken Dispatch;
  85. }
  86. #ifdef SOM_NO_DATA_EXPORTS
  87.     * ODDispatchModuleGetClassData ( void );
  88. #   undef ODDispatchModuleClassData
  89. #   define ODDispatchModuleClassData (*ODDispatchModuleGetClassData())
  90. #else
  91.       ODDispatchModuleClassData;
  92. #endif /* SOM_NO_DATA_EXPORTS */
  93.  
  94. #if applec ^ PRAGMA_LIB_EXPORT
  95. #pragma lib_export off
  96. #endif
  97.  
  98.  
  99. /*
  100.  * Declare the C specific class data structure
  101.  */
  102. SOMEXTERN struct ODDispatchModuleCClassDataStructure {
  103.     somMethodTabs parentMtab;
  104.     somDToken instanceDataToken;
  105. } ODDispatchModuleCClassData;
  106.  
  107. /*
  108.  * New and Renew macros for ODDispatchModule
  109.  */
  110. #define ODDispatchModuleNew() \
  111.     ( ( ! (ODDispatchModuleClassData.classObject) && \
  112.         (ODDispatchModuleNewClass(ODDispatchModule_MajorVersion, ODDispatchModule_MinorVersion)) ), \
  113.       (_somNew(ODDispatchModuleClassData.classObject)) )
  114. #define ODDispatchModuleRenew(buf) \
  115.     ( _somRenew(ODDispatchModuleClassData.classObject, buf) )
  116.  
  117. /*
  118.  * Override method: somInit
  119.  */
  120. #define ODDispatchModule_somInit(somSelf) \
  121.     SOMObject_somInit(somSelf)
  122.  
  123. /*
  124.  * Override method: somUninit
  125.  */
  126. #define ODDispatchModule_somUninit(somSelf) \
  127.     SOMObject_somUninit(somSelf)
  128.  
  129. /*
  130.  * Override method: Purge
  131.  */
  132. #define ODDispatchModule_Purge(somSelf,ev,size) \
  133.     ODObject_Purge(somSelf,ev,size)
  134.  
  135. /*
  136.  * New Method: InitDispatchModule
  137.  */
  138. typedef void   (SOMLINK *somTD_ODDispatchModule_InitDispatchModule)(ODDispatchModule *somSelf, Environment *ev,
  139.         ODSession* session);
  140. #define somMD_ODDispatchModule_InitDispatchModule "::ODDispatchModule::InitDispatchModule"
  141. #define ODDispatchModule_InitDispatchModule(somSelf,ev,session) \
  142.     (SOM_Resolve(somSelf, ODDispatchModule, InitDispatchModule) \
  143.     (somSelf,ev,session))
  144. #ifndef SOMGD_InitDispatchModule
  145.     #if (defined(_InitDispatchModule) || defined(__InitDispatchModule))
  146.         #undef _InitDispatchModule
  147.         #undef __InitDispatchModule
  148.         #define SOMGD_InitDispatchModule 1
  149.     #else
  150.         #define _InitDispatchModule ODDispatchModule_InitDispatchModule
  151.     #endif /* _InitDispatchModule */
  152. #endif /* SOMGD_InitDispatchModule */
  153.  
  154. /*
  155.  * New Method: Dispatch
  156.  */
  157. typedef ODBoolean   (SOMLINK *somTD_ODDispatchModule_Dispatch)(ODDispatchModule *somSelf, Environment *ev,
  158.         ODEventData* event);
  159. #define somMD_ODDispatchModule_Dispatch "::ODDispatchModule::Dispatch"
  160. #define ODDispatchModule_Dispatch(somSelf,ev,event) \
  161.     (SOM_Resolve(somSelf, ODDispatchModule, Dispatch) \
  162.     (somSelf,ev,event))
  163. #ifndef SOMGD_Dispatch
  164.     #if (defined(_Dispatch) || defined(__Dispatch))
  165.         #undef _Dispatch
  166.         #undef __Dispatch
  167.         #define SOMGD_Dispatch 1
  168.     #else
  169.         #define _Dispatch ODDispatchModule_Dispatch
  170.     #endif /* _Dispatch */
  171. #endif /* SOMGD_Dispatch */
  172. #ifndef SOM_DONT_USE_INHERITED_MACROS
  173. #define ODDispatchModule_InitObject ODObject_InitObject
  174. #define ODDispatchModule_IsInitialized ODObject_IsInitialized
  175. #define ODDispatchModule_HasExtension ODObject_HasExtension
  176. #define ODDispatchModule_GetExtension ODObject_GetExtension
  177. #define ODDispatchModule_ReleaseExtension ODObject_ReleaseExtension
  178. #define ODDispatchModule_SubClassResponsibility ODObject_SubClassResponsibility
  179. #define ODDispatchModule_somFree SOMObject_somFree
  180. #define ODDispatchModule_somGetClass SOMObject_somGetClass
  181. #define ODDispatchModule_somGetClassName SOMObject_somGetClassName
  182. #define ODDispatchModule_somGetSize SOMObject_somGetSize
  183. #define ODDispatchModule_somIsA SOMObject_somIsA
  184. #define ODDispatchModule_somIsInstanceOf SOMObject_somIsInstanceOf
  185. #define ODDispatchModule_somRespondsTo SOMObject_somRespondsTo
  186. #define ODDispatchModule_somDispatchV SOMObject_somDispatchV
  187. #define ODDispatchModule_somDispatchL SOMObject_somDispatchL
  188. #define ODDispatchModule_somDispatchA SOMObject_somDispatchA
  189. #define ODDispatchModule_somDispatchD SOMObject_somDispatchD
  190. #define ODDispatchModule_somDispatch SOMObject_somDispatch
  191. #define ODDispatchModule_somClassDispatch SOMObject_somClassDispatch
  192. #define ODDispatchModule_somPrintSelf SOMObject_somPrintSelf
  193. #define ODDispatchModule_somDumpSelf SOMObject_somDumpSelf
  194. #define ODDispatchModule_somDumpSelfInt SOMObject_somDumpSelfInt
  195. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  196.  
  197. #endif       /* SOM_ODDispatchModule_h */
  198.